﻿namespace pay.sofort.test
{
    using System.IO;

    public class TestBase
    {
        protected const string ConfigFileName = "sofort.xml";

        protected string GetXmlTestData(string fileName)
        {
            string fullFilePath = Path.Combine("example/", fileName);
            if (File.Exists(fullFilePath))
                return File.ReadAllText(fullFilePath);
            else
                return null;

        }

        protected TestBase()
        {
            // HACK: Copies EntityFramework.SqlServer.dll to Test Dir
            var instance = System.Data.Entity.SqlServer.SqlProviderServices.Instance;
        }

    }
}
